package org.thanos.demo.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.thanos.demo.producer.LogEventProducer;

import java.util.UUID;

@RestController
public class DemoController {

    @Autowired
    private LogEventProducer logEventProducer;

    @GetMapping(path = "/demo")
    public void demo() {
        logEventProducer.pub(UUID.randomUUID().toString(), UUID.randomUUID().toString());
    }
}
